package com.yonyou.common.service.messagecenter.datamapping;

import org.springframework.stereotype.Service;

@Service
public class JsonF3Mapping implements DataMapping{

	@Override
	public String convert(String data) {
		String result="------WebKitFormBoundaryJKsyTbeL1M0xQOXc\r\n"+
		"Content-Disposition: form-data; name=\"data\"\r\n\r\n"+
		data+"\r\n"+
		"------WebKitFormBoundaryJKsyTbeL1M0xQOXc--";
		return result;
	}

	@Override
	public String getContentType() {
		String result="multipart/form-data;boundary=----WebKitFormBoundaryJKsyTbeL1M0xQOXc";
		return result;
	}

}
